package com.bwie.config;

import com.alipay.api.DefaultAlipayClient;
import com.bwie.utils.R;
import lombok.Data;
import lombok.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Configuration
@PropertySource("classpath:application.yml")
@ConfigurationProperties(prefix = "alipay")
public class PayConfig {
//alipay:
//  appId: 2021000147682253
//  privateKey: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCXC2LkUCdfkfYBXYeUknEWCv6/5swkRJxZVQ2UxazDtElGuG6nZ8AW8KpTy92JnGokskFSxp7NQ4SoUESAl0MWfWOh/9GqzvgfOf3xzd+neZiHbce5wq0JS5u8+KOtsnkddJYjDHeYpsmBYsjh2NfKGvoCVSRTUoMVy1XI0+n5BYaTLLABpmrkbqFQJ3jmverX/3y5DrNdbuBNjdSuPG41nCMHsEjM6ofDSqg9bCCBQ+iWzJ+8kjlsXtm6lgxxptRec69s0TKjBJUCDENc6PRWwTjqsXzFtAUEIuI+lljvdgG4zuphEJvahjzi/VG7XKYfE68SyWtfBIilmVVv2YCjAgMBAAECggEATGRr3cFUSJfP7hzZx6DRJS7mbTRTpzw0P1IvDkF0AX8bWHNLM8vbcT7DRqJjJ4g+ftTRCQZ/pp0xaNc/7jGSsrs0OujhqBwJjfGMqFFRfqiXJle1nhQB5COjXs36Ko2LiARBMvTJQCGK5K+Lnf5IFWXTcH6TYrjmp40xk+LqARGqe5m0t0VEwOLSHZFl3yuokBBe1XoCoZtJQ+RStWwa9oNFdY4oa4raUeoZlV1x6rq9z7lPjpgsiteGwbsnKO2jFZ/hAgvq1QswmzE0CaDwALIFcUrK0DPpd31jVZ841vBzjmh3pcRWgJz0aIF3X3Nc/PVktZzBY7h8Mu0sFlw+0QKBgQDpyungQrjC44qmGWeS7W7VrZywikZeH30DgQx3ApYA84P8zActFsMaG3JJPKorSUF9Qhi9RgrQ7MZ+RQXeKQLfW7icBvd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DX9N2TXUX4yImbgTEnzL0YJzn25RQ0uhSeR5qjNh1m9bafAbifZzJpNDwcyNIOGynrRGQTOz4o4UsC8gkRBM5VQBwyiZiBoz5CdFCfwW+9YpujwIDAQAB
//  notifyUrl: http://b75f36ba.natappfree.cc/alipay/notify
//  returnUrl: http://b75f36ba.natappfree.cc/alipay/notify
//  gatewayUrl: https://openapi-sandbox.dl.alipaydev.com/gateway.do
//  singType: RSA2
//  charset: UTF-8
    private String appId;
    private String privateKey;
    private String publicKey;
    private String notifyUrl;
    private String returnUrl;
    private String gatewayUrl;
    private String singType;
    private String charset;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public void setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public void setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
    }

    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    public String getSingType() {
        return singType;
    }

    public void setSingType(String singType) {
        this.singType = singType;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }
}
